]> dgit.raspbian.org Git - openjdk-25.git/commit
disable UnsafeGuard in Unsafe_SetMemory0 for i386
authorVladimir Petko <vladimir.petko@canonical.com>
Thu, 24 Sep 2026 07:52:19 +0000 (19:52 +1200)
committerVladimir Petko <vladimir.petko@canonical.com>
Thu, 24 Sep 2026 07:52:19 +0000 (19:52 +1200)
commit2e810f492df6c556bbc8010d251d47a0b424b08e
tree7ebd26bade6bed8246bf4aabd047e12d93c8fb49
parentb0cde6740b16a13f1e22a9cc1e3d4beb626a1a53
disable UnsafeGuard in Unsafe_SetMemory0 for i386

Bug: https://bugs.openjdk.org/browse/JDK-8335238
Forwarded: not-needed
Last-Update: 2024-07-01

x86 hotspot aseembler incorrectly returns next instruction's PC
for rep stos %eax,%es:(%edi) causing an infinite loop.
This patch removes UnsafeGuard for i386, so that VM crashes
instead of hanging indefinitely.
Patch should not be forwarded as it reverses JDK-8320886 for
i386.

Gbp-Pq: Name jdk-8335238-workaround.patch
src/hotspot/share/prims/unsafe.cpp